package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Biography;
import tech.aistar.mapper.BiographyMapper;
import tech.aistar.service.IBiographyService;

import java.util.List;

@Service
public class BiographyServiceImpl implements IBiographyService {

    //service调用mapper
    @Autowired
    private BiographyMapper biographyMapper;

    @Override
    public List<Biography> findAll(String name, Integer typeId) {
        return biographyMapper.findAll(name,typeId);
    }
}
